import {createApp} from 'vue';
import App from './App.vue';
import router from './router';
import { createPinia } from 'pinia'
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';

// 样式引入
import './styles/index.less';
import './styles/global_style.less'; // 全局样式

// antd组件引入
import Antd from 'ant-design-vue';
import './styles/antdv_rest.less'; // 重置antd样式

// datav-vue3引入
import DataVVue3 from '@kjgl77/datav-vue3';

import { registerGlobComp } from '@/components/registerGlobComp'; // 全局公共组件

dayjs.locale('zh-cn');

const app = createApp(App);
app.use(router);
app.use(createPinia());
app.use(Antd);
app.use(DataVVue3);

registerGlobComp(app);

app.mount('#app');